#!/bin/bash

/data/local/tmp/hcidump -i hci0 -V |
while read line;
do
case "$line" in 
    *"Accept Connection Request"*) 
    echo $line
    read line
    echo $line
    break
    ;;
esac
done
exit
